<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="修改服务">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module search">
                                <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/api/queryService.html?page=${page}&searchName=${searchName}'">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form name="form1" method="post" action="/admin/api/modifyService.html" >
                                <div class="valBox w750">
                                    <div class="top">
                                        <strong>修改服务信息</strong>
                                    </div>
                                    <div class="val clearfix">
                                        <ul>
                                            <li>
                                                <div class="title">服务名称：</div>
                                                <div class="v">
                                                    <input type="text" name="name" style="width:250px;" value="<#if apiService??>${apiService.name!''}<#else></#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">服务编码：</div>
                                                <div class="v">
                                                    <input type="text" name="code" style="width:250px;" value="<#if apiService??>${apiService.code!''}<#else></#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">是否启用：</div>
                                                <div class="v">
                                                    <input type="radio" name="isOpen" value="1"  <#if apiService??><#if apiService.isOpen==1> checked</#if><#else></#if>>启用
                                                    <input type="radio" name="isOpen" value="0"  <#if apiService??><#if apiService.isOpen==0> checked</#if><#else></#if>>停用
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">是否记录：</div>
                                                <div class="v">
                                                    <input type="radio" name="isRecord" value="1" <#if apiService??><#if apiService.isRecord==1> checked</#if><#else></#if>>记录
                                                    <input type="radio" name="isRecord" value="0"   <#if apiService??><#if apiService.isRecord==0> checked</#if><#else></#if>>不记录
                                                    <font color="red">（注：如果选择不记录,访问对外API的时不插入请求记录表里数据,一般“查询服务”选择不记录,其他请求选择记录。）</font>
                                                </div>

                                            </li>
                                            <li>
                                                <div class="title">备注：</div>
                                                <div class="v s_writeContent">
                                                    <textarea name="memo"> <#if apiService??>${apiService.memo!''}<#else></#if></textarea>
                                                </div>
                                            </li>

                                        </ul>
                                        <div class="other">
                                            <input type="hidden"  name="actionType" value="modify" />
                                            <input type="hidden"  name="page" value="${page}" />
                                            <input type="hidden"  name="id" value=${id}>
                                            <input type="hidden"  name="searchName" value="${searchName}" />
                                            <input type="submit"  name="reset" value="修改" class="input-button confirm"/>
                                        </div>
                                    </div>
                                </div>

                            </form>

                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    </body>
</html>

